//
//  MusicHelper.h
//  JZMCFM
//
//  Created by Mc on 15/11/3.
//  Copyright (c) 2015年 陈卓. All rights reserved.
//

#import <Foundation/Foundation.h>
@class MusicHelper;
@protocol MusicHelperDelegate <NSObject>
@optional
- (void)playWithAudioPlayer:(MusicHelper *)player withProgress:(CGFloat)progress;

- (void)playEndFinish:(MusicHelper *)player;
@end
@interface MusicHelper : NSObject
@property(nonatomic,assign)BOOL isPlaying;
@property(nonatomic,assign)id<MusicHelperDelegate>delegate;
+ (instancetype)sharedInstance;

- (void)prepareWithUrl:(NSString *)url;

- (void)play;

- (void)pause;

- (void)stop;

- (void)seekToTime:(float)time;

@end
